package com.hangxintong.common.base.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Date;


@Entity
@Table
@Data
public class LmUser extends BaseJpaModel {

  public interface Userreg {
  }

  public interface Update {
  }

  private Integer companyId;
  @NotEmpty(message = "用户名不能为空", groups = Userreg.class)
  @Size(max = 22, min = 6, message = "用户名称字符长度为6-22位", groups = Userreg.class)
  private String username;

  @NotEmpty(message = "密码字符不能为空", groups = Userreg.class)
  @Size(max = 22, min = 6, message = "密码字符长度为6-22位", groups = Userreg.class)
  private String passwd;

  @NotEmpty(message = "姓名不能为空", groups = Userreg.class)
  @Size(max = 22, min = 6, message = "姓名长度为6-22位", groups = Userreg.class)
  private String realname;

  private Integer sex;

  @NotEmpty(message = "身份证号不能为空", groups = Userreg.class)
  @Size(max = 22, min = 6, message = "身份证号长度为6-22位", groups = Userreg.class)
  private String identity;

  @NotEmpty(message = "手机号不能为空", groups = Userreg.class)
  @Size(max = 22, min = 6, message = "手机号长度为6-22位", groups = Userreg.class)
  private String mobile;
  private String sign;
  private String deviceNum;
  private String faceImg;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date loginTime;

  private String createTime;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private String updateTime;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date deleteTime;
  private String birthday;
  private String remark;
  private String email;
  private Integer safeLevel = 1;
  private String identityImgZheng;
  private String identityImgFan;
  private int identityStatus = 1;
  private String identityRemark;

  // 新增字段
  private String issuingAuthority;
  private String startTime;
  private String endTime;
  private String countryId;
  private String sheng;
  private String shi;
  private String qu;
  private String address;
  private String nation;
  private String sexName;
  private String bottomPicture;
  private String xueli;

  //专业职称
  private String professional;
  //百度图片库token
  private String faceToken;
  // 企业标签集合
  private String companyNames;

  private String openId;
  //评审专家权限
  private Integer isPsAuth=0;
}
